package com.dw.etl.core.bean.model;

import java.io.Serializable;

public class BaseIndexConfFd implements Serializable {
    private static final long serialVersionUID = 1L;

    private String pk;

    private String pkConf;

    private String pkTb;

    private String pkPubfd;

    public String getPk() {
        return pk;
    }

    public void setPk(String pk) {
        this.pk = pk;
    }

    public String getPkConf() {
        return pkConf;
    }

    public void setPkConf(String pkConf) {
        this.pkConf = pkConf;
    }

    public String getPkTb() {
        return pkTb;
    }

    public void setPkTb(String pkTb) {
        this.pkTb = pkTb;
    }

    public String getPkPubfd() {
        return pkPubfd;
    }

    public void setPkPubfd(String pkPubfd) {
        this.pkPubfd = pkPubfd;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseIndexConfFd other = (BaseIndexConfFd) that;
        return (this.getPk() == null ? other.getPk() == null : this.getPk().equals(other.getPk()))
            && (this.getPkConf() == null ? other.getPkConf() == null : this.getPkConf().equals(other.getPkConf()))
            && (this.getPkTb() == null ? other.getPkTb() == null : this.getPkTb().equals(other.getPkTb()))
            && (this.getPkPubfd() == null ? other.getPkPubfd() == null : this.getPkPubfd().equals(other.getPkPubfd()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPk() == null) ? 0 : getPk().hashCode());
        result = prime * result + ((getPkConf() == null) ? 0 : getPkConf().hashCode());
        result = prime * result + ((getPkTb() == null) ? 0 : getPkTb().hashCode());
        result = prime * result + ((getPkPubfd() == null) ? 0 : getPkPubfd().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", pk=").append(pk);
        sb.append(", pkConf=").append(pkConf);
        sb.append(", pkTb=").append(pkTb);
        sb.append(", pkPubfd=").append(pkPubfd);
        sb.append("]");
        return sb.toString();
    }
}